package com.tjnu.baiyi.entity;

import java.sql.Timestamp;

/**
 * TbComment entity. @author MyEclipse Persistence Tools
 */

public class TbComment implements java.io.Serializable {
	private static final long serialVersionUID = 368939076610348922L;
	private Integer commentId;
	private TbUser tbUser;
	private TbAlbum tbAlbum;
	private String comment;
	private Timestamp commentTime;

	// Constructors

	/** default constructor */
	public TbComment() {
	}

	/** minimal constructor */
	public TbComment(TbAlbum tbAlbum, String comment, Timestamp commentTime) {
		this.tbAlbum = tbAlbum;
		this.comment = comment;
		this.commentTime = commentTime;
	}

	/** full constructor */
	public TbComment(TbUser tbUser, TbAlbum tbAlbum, String comment,
			Timestamp commentTime) {
		this.tbUser = tbUser;
		this.tbAlbum = tbAlbum;
		this.comment = comment;
		this.commentTime = commentTime;
	}

	// Property accessors

	public Integer getCommentId() {
		return this.commentId;
	}

	public void setCommentId(Integer commentId) {
		this.commentId = commentId;
	}

	public TbUser getTbUser() {
		return this.tbUser;
	}

	public void setTbUser(TbUser tbUser) {
		this.tbUser = tbUser;
	}

	public TbAlbum getTbAlbum() {
		return this.tbAlbum;
	}

	public void setTbAlbum(TbAlbum tbAlbum) {
		this.tbAlbum = tbAlbum;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Timestamp getCommentTime() {
		return this.commentTime;
	}

	public void setCommentTime(Timestamp commentTime) {
		this.commentTime = commentTime;
	}

}